package com.example.mq1.mqserver.mapper;

import com.example.mq1.mqserver.core.Binding;
import com.example.mq1.mqserver.core.Exchange;
import com.example.mq1.mqserver.core.MSGQueue;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MetaMapper {

    //三个核心建表方法
    void createExchangeTable();
    void createQueueTable();
    void createBindingTable();

    //针对上述三个核心方法，进行的增删查操作
    void insertExchange(Exchange exchange);
    List<Exchange> selectExchangeAll();
    void deleteExchange(String exchangeName);
    void insertQueue(MSGQueue queue);
    List<MSGQueue> selectQueueAll();
    void deleteQueue(String queueName);
    void insertBinding(Binding binding);
    List<Binding> selectBindingAll();
    void deleteBinding(Binding binding);


}
